<template>
  <el-container>
    <el-header>欢迎来到数码之家</el-header>
    <el-carousel indicator-position="outside">
      <!-- 放在服务器获取 images文件夹要放在public目录 -->
      <el-carousel-item v-for="item in 3" :key="item">
        <h3><img src="../images/1.png" alt="" /></h3>
      </el-carousel-item>
    </el-carousel>
    <template>
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="全部商品" name="first">用户管理</el-tab-pane>
        <el-tab-pane label="手机" name="second">配置管理</el-tab-pane>
        <el-tab-pane label="笔记本" name="third">角色管理</el-tab-pane>
        <el-tab-pane label="电视" name="fourth">定时任务补偿</el-tab-pane>
        <el-tab-pane label="平板" name="fifth">定时任务补偿</el-tab-pane>
        <el-tab-pane label="家电" name="sixth">定时任务补偿</el-tab-pane>
      </el-tabs>
    </template>
    <!-- <el-footer>Footer</el-footer> -->
  </el-container>
</template>

<script>
export default {
  data() {
    return {
      activeName: 'first',
    }
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event)
    },
  },
}
</script>

<style lang="scss" scoped>
.el-container {
  width: 1200px;
  margin: 0 auto;
}
.el-header {
  background-color: #f1f2f3;
  color: #333;
  height: 80px !important;
}
.el-tabs {
  margin: 30px;
}
.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}
// 轮播图
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 550px;
  margin: 0;
}
</style>
